<style>
    .te_retit {
        font-size: 16px;
        font-weight: bold;
        line-height: 20px;
    }

    .tr_rechtext {

        padding: 10px;
        background: #dedede;
        color: #333;
        margin-bottom: 10px;
    }
    .layui-form-label{
        width: 60px;
        padding:10px 2px
    }
    .layui-input-block {
        margin-left: 70px;
    }
    xm-select > .xm-body{
        z-index: 10006;
    }
</style>
<div class="layuimini-container">

    <div class="layuimini-main" id="app">

        <div class="layui-tab layui-tab-card" style="min-height: 660px">

            <ul class="layui-tab-title">
                <li class="layui-this">文章主体</li>
                <li>其他信息</li>
            </ul>
            <div class="layui-tab-content layui-form" style="min-height: 150px;">

                <div class="layui-tab-item layui-show">
                    <div class="layui-row">
                        <div class="layui-col-md3">
                            <div class="layui-form-item">
                            <label class="layui-form-label">资源分类</label>
                            <div class="layui-input-block">
                                <select lay-verify="required" name="category_id">
                                    {volist name="$category_level_list" id="vo"}
                                    <option value="{$vo.id}" {if $vo.id eq $row.category_id}selected{/if}>{$vo.title|html_entity_decode}
                                    </option>
                                    {/volist}
                                </select>
                            </div>
                        </div>
                    </div>
                        <div class="layui-col-md6">
                            <div class="layui-form-item">
                            <label class="layui-form-label">标题</label>
                            <div class="layui-input-block">
                                <input type="text" name="title" class="layui-input" lay-verify="required" value="{$row.title}" placeholder="请输入标题">
                            </div>
                            </div>
                        </div>
                        <div class="layui-col-md3">
                            <div class="layui-form-item">
                            <label class="layui-form-label" title="">定时发布<a title="点击查看使用方法" target="_blank"
                                                                            href="http://bbs.laysns.com/thread/2479.html">
                                <i class="layui-icon layui-icon-tips"></i></a></label>

                            <div class="layui-input-block">
                                <input type="text" data-date="" data-date-type="datetime" class="layui-input time"
                                       autocomplete="off" name="publish_time" value="{$row.publish_time}">
                            </div>
                            </div>
                        </div>
                    </div>

                    <div class="layui-row">

                        <div class="layui-col-md4">
                            <div class="layui-form-item">
                            <label class="layui-form-label">外链</label>
                            <div class="layui-input-block">
                                <input name="out_link" type="text" value="{$row.out_link}" autocomplete="off"
                                       class="layui-input">
                            </div>
                            </div>
                        </div>

                        <div class="layui-col-md6">
                            <div class="layui-form-item">
                            <label class="layui-form-label">关键词</label>
                            <div class="layui-input-block">
                                <div data-xmSelect="keywords" data-value="{$row.keywords}"></div>
                            </div>
                            </div>
                        </div>
                        <div class="layui-col-md2">
                            <div class="layui-form-item">
                                <label class="layui-form-label">图片本地化</label>
                                <div class="layui-input-block">
                                    <input type="hidden" name="downpic" value="0">
                                    <input type="checkbox" name="downpic" value="1" lay-skin="switch" lay-text="开|关">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">描述</label>
                        <div class="layui-input-block">
                            <textarea name="description" rows="3" class="layui-textarea" placeholder="">{$row.description|default=''}</textarea>
                        </div>
                    </div>


                    <div class="layui-form-item">
                        <label class="layui-form-label">内容</label>
                        <div class="layui-input-block">
                            <textarea name="content" rows="20" class="layui-textarea editor" placeholder="">{$row.content|htmlspecialchars_decode|default=''}</textarea>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label required">封面</label>
                        <div class="layui-input-block layuimini-upload">
                            <input name="cover_img" class="layui-input layui-col-xs6" value="{$row.cover_img}"
                                   placeholder="如果不传，会从内容中摘取第一张">
                            <div class="layuimini-upload-btn">
                                <span><a class="layui-btn" data-upload="cover_img" data-upload-number="one"
                                         data-watermark="1" data-upload-exts="png|jpg|ico|jpeg"><i
                                        class="fa fa-upload"></i> 上传</a></span>
                                <span><a class="layui-btn layui-btn-normal" id="select_head_img"
                                         data-upload-select="cover_img" data-upload-number="one"><i
                                        class="fa fa-list"></i> 选择</a></span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-tab-item">
                    <div class="tr_rechtext">
                        <p class="te_retit">说明</p>
                        <p>设置成广告时需要配合失效时间使用，否则无效</p>

                    </div>
                    <tips></tips>
                    <div class="layui-form-item layui-row">
                        <div class="layui-col-md6">
                            <label class="layui-form-label">SEO标题</label>
                            <div class="layui-input-block">
                                <input type="text" name="seo_title" class="layui-input" placeholder="SEO标题"
                                       value="{$row.seo_title}">
                            </div>
                        </div>
                        <div class="layui-col-md3">
                            <label class="layui-form-label" title="一般用于活动线报和广告">失效时间</label>
                            <div class="layui-input-block">
                                <input type="text" data-date="" data-date-type="datetime"
                                       class="layui-input time" autocomplete="off" name="finish_time"
                                       value="{$row.finish_time}">
                            </div>
                        </div>
                        <div class="layui-col-md3">
                            <label class="layui-form-label">颜色</label>
                            <div class="layui-input-block">
                                <input name="title_color" class="layui-input" value="{$row.title_color}"
                                       placeholder="" style="display:initial;width: 80px">

                                <span data-color="title_color"></span>
                            </div>
                        </div>
                    </div>
                    <div class="layui-row">

                        <div class="layui-col-md2">
                            <div class="layui-form-item">
                                <label class="layui-form-label">加粗</label>
                                <div class="layui-input-block">
                                    <input type="hidden" name="is_bold" value="0">
                                    <input type="checkbox" name="is_bold" value="1" {if $row.is_bold} checked {/if}
                                    lay-skin="switch" lay-text="开|关">
                                </div>
                            </div>
                        </div>

                        <div class="layui-col-md2">
                            <div class="layui-form-item">
                                <label class="layui-form-label">设置成广告</label>
                                <div class="layui-input-block">
                                    <input type="hidden" name="is_ad" value="0">
                                    <input type="checkbox" name="is_ad" value="1" {if $row.is_ad} checked {/if}
                                    lay-skin="switch" lay-text="开|关">
                                </div>
                            </div>
                        </div>

                        <div class="layui-col-md2">
                            <div class="layui-form-item">
                                <label class="layui-form-label">设置成轮播</label>
                                <div class="layui-input-block">
                                    <input type="hidden" name="is_carousel" value="0">
                                    <input type="checkbox" name="is_carousel" value="1" {if $row.is_carousel}
                                           checked {/if} lay-skin="switch" lay-text="开|关">
                                </div>
                            </div>
                        </div>

                        <div class="layui-col-md2">
                            <div class="layui-form-item">
                                <label class="layui-form-label">加精</label>
                                <div class="layui-input-block">
                                    <input type="hidden" name="is_essence" value="0">
                                    <input type="checkbox" name="is_essence" value="1" {if $row.is_essence}
                                           checked {/if} lay-skin="switch" lay-text="开|关">
                                </div>
                            </div>
                        </div>

                        <div class="layui-col-md2">
                            <div class="layui-form-item">
                                <label class="layui-form-label">栏目置顶</label>
                                <div class="layui-input-block">
                                    <input type="hidden" name="is_top" value="0">
                                    <input type="checkbox" name="is_top" value="1" {if $row.is_top} checked {/if}
                                    lay-skin="switch" lay-text="开|关">
                                </div>
                            </div>
                        </div>

                        <div class="layui-col-md2">
                            <div class="layui-form-item">
                                <label class="layui-form-label">评论</label>
                                <div class="layui-input-block">
                                    <input type="hidden" name="allow_comment" value="0">
                                    <input type="checkbox" name="allow_comment" value="1" {if $row.allow_comment}
                                           checked {/if} lay-skin="switch" lay-text="开|关">
                                </div>
                            </div>
                        </div>

                    </div>


                    {:hooks('attachlink.link_add',array('subject_id'=>$row.id,'subject'=>'ARTICLE'))}


                    {if $row.check_status eq 0}
                    <div class="layui-form-item layui-row">

                        <div class="layui-col-md3">
                            <label class="layui-form-label">审核意见</label>
                            <div class="layui-input-block">
                                <input type="radio" name="check_status" value="1" title="同意">
                                <input type="radio" name="check_status" value="2" title="拒绝">
                            </div>
                        </div>
                        <div class="layui-col-md9">
                            <label class="layui-form-label">审核备注</label>
                            <div class="layui-input-block">
                                <div data-xmSelect="check_result" data-value="{$row.check_result}"
                                     data-selecttype="radio" data-selectjson="{$refuseTpl}"></div>
                            </div>
                        </div>
                    </div>

                    {/if}
                    {if sysconfig('article.award_poster')&&$row.reward_status eq '0'}

                    <div class=" layui-row">
                        <div class="layui-col-md3">
                            <div class="layui-form-item">
                                <label class="layui-form-label">申请奖励的账号</label>
                                <div class="layui-input-block">
                                    <input type="text" class="layui-input" value="{$row.reward_account}">

                                </div>
                            </div>
                        </div>
                        <div class="layui-col-md3">
                            <div class="layui-form-item">
                                <label class="layui-form-label">申请奖励的姓名</label>
                                <div class="layui-input-block">
                                    <input type="text" class="layui-input" value="{$row.reward_name}">
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-md3">
                            <div class="layui-form-item">
                                <label class="layui-form-label">奖励金额</label>
                                <div class="layui-input-block">
                                    <input type="number" class="layui-input" name="reward_amount"  value="0">
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-md3">
                            <div class="layui-form-item">
                                <label class="layui-form-label">奖励结果</label>
                                <div class="layui-input-block">
                                    <input type="text" class="layui-input" name="reward_result" >
                                </div>
                            </div>
                        </div>
                    </div>

                    {/if}

                </div>


                <div class="submit-info text-center">
                    <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
                    <a class="layui-btn layui-btn-primary layui-btn-sm" layform-close>关闭</a>
                </div>

            </div>


        </div>


    </div>


</div>
